// 平台信息模型
enum VideoPlatform {
  ptt(
    id: 'ptt',
    name: 'ptt',
    rootUrl: 'https://ptt.co',
    logoUrl: 'ptt.png',
    supportedCategories: ['电视剧', '电影', '动漫', '短剧', '综艺', '体育'],
    // supportedLocations: ['大陆', '香港', '台湾', '日本', '韩国', '欧美', '泰国', '其他'],
    supportedLocations: [],
    minYear: 2015,
    maxYear: 2025,
    extraInfo: {},
  ),
  javmenu(
    id: 'javMenu',
    name: 'javMenu',
    rootUrl: 'https://javmenu.com',
    logoUrl: 'ptt.png',
    supportedCategories: ['已审查', '未审查', '欧美', 'FC2', '动画', '国产'],
    supportedLocations: [],
    extraInfo: {},
  );

  final String id;
  final String name;
  final String rootUrl;
  final String logoUrl;
  final List<String>? supportedCategories; // 支持的分类
  final List<String>? supportedLocations; // 支持的分类
  final int? minYear; // 支持的最小年份
  final int? maxYear; // 支持的最大年份
  final Map<String, dynamic> extraInfo; // 额外信息

  const VideoPlatform({
    required this.id,
    required this.name,
    required this.rootUrl,
    this.supportedCategories,
    this.supportedLocations,
    this.minYear,
    this.maxYear,
    required this.logoUrl,
    required this.extraInfo,
  });
}
